<template>
    <div class="layout">
        <div class="name">
            <span class="label">昵称</span>
            <span class="detail">{{ studentStore.studentName }}</span>
        </div>
        <div class="number">
            <span class="label">学号</span>
            <span class="detail">{{ studentStore.studentNum }}</span>
        </div>
    </div>
    <div class="updatePersonPhone" @click="updatePersonPhone">更改家长电话</div>
</template>

<script setup>
import { useStudentStore } from '@/stores/modules/studentStore';

const studentStore = useStudentStore();

const updatePersonPhone = () => {
    alert('开发中.......');
};
</script>

<style scoped lang="scss">
.layout {
    width: 100vw;
    height: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    > div {
        width: 100%;
        height: 50%;
        font-size: 16rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #333;
        border-bottom: 1px solid #eee;
        > span {
            padding: 10rem;
        }
    }
}
.updatePersonPhone {
    width: 100vw;
    height: 6vh;
    background-color: #0075ff;
    margin-top: 10rem;
    border-radius: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16rem;
    color: #fff;
}
</style>
